/*
 * Copyright 2017 Baiyyy
 * @(#)IColdStorageBoxService.java
 */

package com.byyy.ccts.modules.ysjl.service;

import com.byyy.ccts.core.common.service.ICommonService;
import com.byyy.ccts.core.model.PageJson;
import com.byyy.ccts.core.query.data.Queryable;
import com.byyy.ccts.core.query.wrapper.EntityWrapper;
import com.byyy.ccts.modules.ysjl.entity.YsjlActivityEnroll;

import java.util.List;

/**
 * Created by DELL on 2018-6-13.
 */
public interface IYsjlActivityEnrollService extends ICommonService<YsjlActivityEnroll> {

    /** 自定义分页 */
    PageJson<YsjlActivityEnroll> pageEnrollList(Queryable queryable, EntityWrapper<YsjlActivityEnroll> wrapper);

    /** 根据活动ID查询活动参与者信息 */
    List<YsjlActivityEnroll> queryListByActivityId(String activityId);

    /** 根据活动ID和用户ID查询用户参与信息 */
    List<YsjlActivityEnroll> queryMyListByActivityId(String activityId, String userId);

    /** 根据活动ID和用户ID删除活动下所有用户的报名 */
    void deleteEnrollByUser(String activityId, String userId);

}
